#include "hal.h"
#include "leds.h"
#include "can.h"
#include "buttons.h"
#include "sensors.h"
#include "sd_card.h"
#include "relay.h"
#include "timers.h"
#include "cilindrica.h"
#include "terminal.h"
#include "inversor_frequencia.h"

 int main (void)
{
  buttons_init();
  can_init();
  leds_init();
  inversor_frequencia_init(20,gVelocidadeInversor);
  terminal_init();
  sensors_init();
  gTerminal.u16=0;  
  debug_frmwrk_init();
  DesativaPonteH();
  timer_init();
  relay_init();
  
  while(1){
      ProcessoCilindrica();
      AnalisaTeclado();
      //terminal_feedback();
      
  }


}

